<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name = "viewport" content = "initial-scale = 1.0,maximum-scale=1.0,user-scalable = no"/>
        <title>window.onload与$(docunment).ready方法使用</title>
        <script src="C:/Users/24098/Desktop/978-7-302-48199-7《HTML5 App应用开发教程》教辅/配套资源包/chapter06/scripts/jquery-3.1.1.min.js"></script>
       
    </head>
    <body>
        <script>
            function doSomething(){
                alert("something");
            }
            function doOtherthing(){
                 alert("otherthing");
            };
            $(document).ready(function(){
                doSomething();
            });
            $(function(){
                doOtherthing();
            });
        </script>
    </body>
</html>